package com.ltu.timkor6.gamesite.shared;

import java.io.Serializable;

@SuppressWarnings("serial")
public class UserInfo implements Serializable
{
	private boolean admin = false;
	private boolean testUser = false;
	
	private String password = null;
	private String userName = null;
	
	private String email = null;
	private String catchpaChallange;
	private String cathcpaResponse;
	private long id = 0;
	
	public UserInfo()
	{
	}
	
	public UserInfo(Long id, String userName)
	{
		this.id  = id;
		this.userName = userName;
	}
	
	public UserInfo(long id, String userName, String password)
	{
		this.id  = id;
		this.password = password;
		this.userName = userName;
	}

	public long getId()
	{
		return this.id;
	}
	
	public boolean isAdmin()
	{
		return this.admin;
	}
	
	public boolean isTestUser()
	{
		return this.testUser;
	}
	
	public String getEmail()
	{
		return this.email;
	}
	
	public String getPassword()
	{
		return this.password;
	}
	
	public String getUserName()
	{
		return this.userName;
	}

	public String getCatchpaChallange()
	{
		return this.catchpaChallange;
	}

	public String getCatchpaResponse()
	{
		return this.cathcpaResponse;
	}
	
	public void setIsAdmin(boolean value)
	{
		this.admin = value;
	}
	
	public void setIsTestUser(boolean value)
	{
		this.testUser = value;
	}
	
	public void setEmail(String value)
	{
		this.email = value;
	}
	
	public void setPassword(String value)
	{
		this.password = value;
	}
	
	public void setUserName(String value)
	{
		this.userName = value;
	}

	public void setCatchpaChallange(String value)
	{
		this.catchpaChallange = value;
	}

	public void setCatchpaResponse(String value)
	{
		this.cathcpaResponse = value;
	}

	public void setId(long id)
	{
		this.id = id;
	}
}
